package net.ncraft.mc.ezframework.core.api;

import net.ncraft.mc.ezframework.core.handler.configuration.ConfigurationCenter;
import net.ncraft.mc.ezframework.core.handler.database.DatabaseCenter;
import org.bukkit.configuration.file.FileConfiguration;

public class ECore {
    public static <E> E getDatabase(Class<E> dataBaseClass) {
        return DatabaseCenter.getDatabase(dataBaseClass);
    }

    public static FileConfiguration getConfig(String name) {
        return ConfigurationCenter.getConfiguration(name);
    }

    public static void saveConfig(FileConfiguration config,String name) {
        ConfigurationCenter.saveConfiguration(config,name);
    }
}
